package com.nbjtjc.common.bean;

public enum LISTSTATUSENUM {

    CONFORM("符合",1),UNCONFORM("不符合",2),UNAPPLY("不适用",3),UNCHECK("未检查",0);

    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(LISTSTATUSENUM liststatusenum : LISTSTATUSENUM.values()){
            if(liststatusenum.getCode().equals(code)){
                return liststatusenum.getName();
            }
        }
        return "";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

     LISTSTATUSENUM(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
